package org.jeecg.modules.chg.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.chg.entity.ChgArrears;

import java.util.List;

/**
 * @Description: 欠费记录
 * @Author: jeecg-boot
 * @Date:   2022-02-13
 * @Version: V1.0
 */
public interface ChgArrearsMapper extends BaseMapper<ChgArrears> {

    /**获取存在违约金的欠费记录  则多租户屏蔽某个特定mapper接口的方法*/
    @InterceptorIgnore(tenantLine = "true")
    public List<ChgArrears>getArrearPenalty();

    /**获取欠费的预存户且余额大于0  */
    public List<ChgArrears>getArrearAutoPayList();

    /**获取欠费记录账号信息  */
    public List<ChgArrears>getArrearList(@Param("query") ChgArrears query);

}
